package com.star.news.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author lintianyi
 * @version 1.0
 * @date 2024/6/27 11:24
 */
@Getter
@Setter
@Accessors(chain = true)
public class NewsCollect {

    /**
     * id
     */
    private Long id;
    /**
     * 新闻id
     */
    private Long newsId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * "逻辑删除（1已删除 0未删除）")
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer deleted;


}
